fix(#2809): make Algorithm getters const#2817
Conversation
briansmith
left a comment
There was a problem hiding this comment.
Thank you. Could you please update the commit message, e.g. "aead/quic: Make key/nonce/tag length accessors const."? We generally want the commit messages to be independent of any GitHub-isms.
This allows using the `key_len` in constants for type safety, e.g. ```rust type CHACHA_KEY = [u8; ring::aead::CHACHA20_POLY1305.key_len()]; static DEFAULT_KEY: CHACHA_KEY = [0; ring::aead::CHACHA20_POLY1305.key_len()]; ``` Signed-off-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
54eab20 to
87a34b8
Compare
Fixed, thanks for the review! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2817 +/- ##
==========================================
- Coverage 96.51% 96.51% -0.01%
==========================================
Files 206 206
Lines 20517 20517
Branches 518 518
==========================================
- Hits 19802 19801 -1
Misses 599 599
- Partials 116 117 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This might be due to the branch being outdated since no lines where added/deleted. |
|
Don't worry about the coverage issue. It's an existing problem that |
This allows using the
key_lenin constants for type safety, e.g.Closes #2809